package org.hfy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 报价计算信息实体类
 * 
 * @author hfy
 * @version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("quotation_calculations")
public class QuotationCalculation extends BaseEntity {

    /**
     * 报价单ID
     */
    @NotNull(message = "报价单ID不能为空")
    @TableField("quotation_id")
    private Long quotationId;

    /**
     * 序号
     */
    @NotNull(message = "序号不能为空")
    @TableField("item_no")
    private Integer itemNo;

    /**
     * 宽(mm)
     */
    @TableField("width_mm")
    private BigDecimal widthMm;

    /**
     * 长(mm)
     */
    @TableField("length_mm")
    private BigDecimal lengthMm;

    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 订单面积(mm²)
     */
    @TableField("order_area_mm")
    private BigDecimal orderAreaMm;

    /**
     * 平米价(元)
     */
    @TableField("price_per_sqm")
    private BigDecimal pricePerSqm;

    /**
     * 未税单价(元)
     */
    @TableField("untax_unit_price")
    private BigDecimal untaxUnitPrice;

    /**
     * 未税金额
     */
    @TableField("untax_amount")
    private BigDecimal untaxAmount;

    /**
     * 测试架费用
     */
    @TableField("testing_fee")
    private BigDecimal testingFee;

    /**
     * 未税总金额
     */
    @TableField("untax_total_amount")
    private BigDecimal untaxTotalAmount;

    /**
     * 含税总金额
     */
    @TableField("tax_total_amount")
    private BigDecimal taxTotalAmount;

    /**
     * 含税单价
     */
    @TableField("tax_unit_price")
    private BigDecimal taxUnitPrice;
} 